<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Jetson Inference: jetson-utils/cudaGrayscale.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NVLogo_2D.jpg"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Jetson Inference
   </div>
   <div id="projectbrief">DNN Vision Library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('cudaGrayscale_8h.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">cudaGrayscale.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &quot;<a class="el" href="cudaUtility_8h_source.html">cudaUtility.h</a>&quot;</code><br />
</div>
<p><a href="cudaGrayscale_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td colspan="2"><div class="groupHeader">8-bit grayscale to floating-point grayscale (and vice versa)</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colorspace.html#ga2befa65dbc92689a36a367993d1ad673" title="Convert between two image formats using the GPU. ">cudaConvertColor()</a> from <a class="el" href="cudaColorspace_8h.html">cudaColorspace.h</a> for automated format conversion </dd></dl>
</div></td></tr>
<tr class="memitem:gad2930b5da1adf112ea0d1fc2a4af6d7e"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gad2930b5da1adf112ea0d1fc2a4af6d7e">cudaGray8ToGray32</a> (uint8_t *input, float *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gad2930b5da1adf112ea0d1fc2a4af6d7e"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uint8 grayscale image into float grayscale.  <a href="group__colorspace.html#gad2930b5da1adf112ea0d1fc2a4af6d7e">More...</a><br /></td></tr>
<tr class="separator:gad2930b5da1adf112ea0d1fc2a4af6d7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaeda6bd828034411d2957fefa9bc7c86c"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gaeda6bd828034411d2957fefa9bc7c86c">cudaGray32ToGray8</a> (float *input, uint8_t *output, size_t width, size_t height, const float2 &amp;pixelRange=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255))</td></tr>
<tr class="memdesc:gaeda6bd828034411d2957fefa9bc7c86c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float grayscale image into uint8 grayscale.  <a href="group__colorspace.html#gaeda6bd828034411d2957fefa9bc7c86c">More...</a><br /></td></tr>
<tr class="separator:gaeda6bd828034411d2957fefa9bc7c86c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">RGB/BGR to 8-bit grayscale</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colorspace.html#ga2befa65dbc92689a36a367993d1ad673" title="Convert between two image formats using the GPU. ">cudaConvertColor()</a> from <a class="el" href="cudaColorspace_8h.html">cudaColorspace.h</a> for automated format conversion </dd></dl>
</div></td></tr>
<tr class="memitem:ga38d17b06ac4d2ffdb4b297cdda88d132"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga38d17b06ac4d2ffdb4b297cdda88d132">cudaRGB8ToGray8</a> (uchar3 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false)</td></tr>
<tr class="memdesc:ga38d17b06ac4d2ffdb4b297cdda88d132"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uchar3 RGB/BGR image into uint8 grayscale.  <a href="group__colorspace.html#ga38d17b06ac4d2ffdb4b297cdda88d132">More...</a><br /></td></tr>
<tr class="separator:ga38d17b06ac4d2ffdb4b297cdda88d132"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga1e4fbd03bd987c426abdfba35dc44e54"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga1e4fbd03bd987c426abdfba35dc44e54">cudaRGBA8ToGray8</a> (uchar4 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false)</td></tr>
<tr class="memdesc:ga1e4fbd03bd987c426abdfba35dc44e54"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uchar4 RGBA/BGRA image into uint8 grayscale.  <a href="group__colorspace.html#ga1e4fbd03bd987c426abdfba35dc44e54">More...</a><br /></td></tr>
<tr class="separator:ga1e4fbd03bd987c426abdfba35dc44e54"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga05a851ab406d65c1f2f47e51ce771cbb"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga05a851ab406d65c1f2f47e51ce771cbb">cudaRGB32ToGray8</a> (float3 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false, const float2 &amp;pixelRange=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255))</td></tr>
<tr class="memdesc:ga05a851ab406d65c1f2f47e51ce771cbb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float3 RGB/BGR image into uint8 grayscale.  <a href="group__colorspace.html#ga05a851ab406d65c1f2f47e51ce771cbb">More...</a><br /></td></tr>
<tr class="separator:ga05a851ab406d65c1f2f47e51ce771cbb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae29c5520d17fdfe5e5cc046392cba334"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gae29c5520d17fdfe5e5cc046392cba334">cudaRGBA32ToGray8</a> (float4 *input, uint8_t *output, size_t width, size_t height, bool swapRedBlue=false, const float2 &amp;pixelRange=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255))</td></tr>
<tr class="memdesc:gae29c5520d17fdfe5e5cc046392cba334"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float4 RGBA/BGRA image into uint8 grayscale.  <a href="group__colorspace.html#gae29c5520d17fdfe5e5cc046392cba334">More...</a><br /></td></tr>
<tr class="separator:gae29c5520d17fdfe5e5cc046392cba334"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">RGB/BGR to floating-point grayscale</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colorspace.html#ga2befa65dbc92689a36a367993d1ad673" title="Convert between two image formats using the GPU. ">cudaConvertColor()</a> from <a class="el" href="cudaColorspace_8h.html">cudaColorspace.h</a> for automated format conversion </dd></dl>
</div></td></tr>
<tr class="memitem:ga7e65db0b95cd45e85296ba9db9f56621"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga7e65db0b95cd45e85296ba9db9f56621">cudaRGB8ToGray32</a> (uchar3 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)</td></tr>
<tr class="memdesc:ga7e65db0b95cd45e85296ba9db9f56621"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uchar3 RGB/BGR image into float grayscale.  <a href="group__colorspace.html#ga7e65db0b95cd45e85296ba9db9f56621">More...</a><br /></td></tr>
<tr class="separator:ga7e65db0b95cd45e85296ba9db9f56621"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga76480ff68415cfc5ebe52ff4ee1dba18"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga76480ff68415cfc5ebe52ff4ee1dba18">cudaRGBA8ToGray32</a> (uchar4 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)</td></tr>
<tr class="memdesc:ga76480ff68415cfc5ebe52ff4ee1dba18"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uchar4 RGBA/BGRA image into float grayscale.  <a href="group__colorspace.html#ga76480ff68415cfc5ebe52ff4ee1dba18">More...</a><br /></td></tr>
<tr class="separator:ga76480ff68415cfc5ebe52ff4ee1dba18"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab4a99353101747d552ea86c56bda2c07"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gab4a99353101747d552ea86c56bda2c07">cudaRGB32ToGray32</a> (float3 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)</td></tr>
<tr class="memdesc:gab4a99353101747d552ea86c56bda2c07"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float3 RGB/BGR image into float grayscale.  <a href="group__colorspace.html#gab4a99353101747d552ea86c56bda2c07">More...</a><br /></td></tr>
<tr class="separator:gab4a99353101747d552ea86c56bda2c07"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gac098220252c68f4adc86d38d781878c7"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gac098220252c68f4adc86d38d781878c7">cudaRGBA32ToGray32</a> (float4 *input, float *output, size_t width, size_t height, bool swapRedBlue=false)</td></tr>
<tr class="memdesc:gac098220252c68f4adc86d38d781878c7"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float4 RGB/BGR image into float grayscale.  <a href="group__colorspace.html#gac098220252c68f4adc86d38d781878c7">More...</a><br /></td></tr>
<tr class="separator:gac098220252c68f4adc86d38d781878c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">8-bit grayscale to RGB/BGR</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colorspace.html#ga2befa65dbc92689a36a367993d1ad673" title="Convert between two image formats using the GPU. ">cudaConvertColor()</a> from <a class="el" href="cudaColorspace_8h.html">cudaColorspace.h</a> for automated format conversion </dd></dl>
</div></td></tr>
<tr class="memitem:gab37fe8aab37f309b90dc3b7df33fea22"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gab37fe8aab37f309b90dc3b7df33fea22">cudaGray8ToRGB8</a> (uint8_t *input, uchar3 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gab37fe8aab37f309b90dc3b7df33fea22"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uint8 grayscale image into uchar3 RGB/BGR.  <a href="group__colorspace.html#gab37fe8aab37f309b90dc3b7df33fea22">More...</a><br /></td></tr>
<tr class="separator:gab37fe8aab37f309b90dc3b7df33fea22"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga866ad8f2da224d6403ce6ea6a3e36f85"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga866ad8f2da224d6403ce6ea6a3e36f85">cudaGray8ToRGBA8</a> (uint8_t *input, uchar4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga866ad8f2da224d6403ce6ea6a3e36f85"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uint8 grayscale image into uchar4 RGB/BGR.  <a href="group__colorspace.html#ga866ad8f2da224d6403ce6ea6a3e36f85">More...</a><br /></td></tr>
<tr class="separator:ga866ad8f2da224d6403ce6ea6a3e36f85"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga8924f2b6d7b21c1c2f73e868e331592a"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga8924f2b6d7b21c1c2f73e868e331592a">cudaGray8ToRGB32</a> (uint8_t *input, float3 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga8924f2b6d7b21c1c2f73e868e331592a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uint8 grayscale image into float3 RGB/BGR.  <a href="group__colorspace.html#ga8924f2b6d7b21c1c2f73e868e331592a">More...</a><br /></td></tr>
<tr class="separator:ga8924f2b6d7b21c1c2f73e868e331592a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gae3ecc5983890fc3846befedc01872a44"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gae3ecc5983890fc3846befedc01872a44">cudaGray8ToRGBA32</a> (uint8_t *input, float4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gae3ecc5983890fc3846befedc01872a44"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert uint8 grayscale image into float4 RGB/BGR.  <a href="group__colorspace.html#gae3ecc5983890fc3846befedc01872a44">More...</a><br /></td></tr>
<tr class="separator:gae3ecc5983890fc3846befedc01872a44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr><td colspan="2"><div class="groupHeader">Floating-point grayscale to RGB/BGR</div></td></tr>
<tr><td colspan="2"><div class="groupText"><dl class="section see"><dt>See also</dt><dd><a class="el" href="group__colorspace.html#ga2befa65dbc92689a36a367993d1ad673" title="Convert between two image formats using the GPU. ">cudaConvertColor()</a> from <a class="el" href="cudaColorspace_8h.html">cudaColorspace.h</a> for automated format conversion </dd></dl>
</div></td></tr>
<tr class="memitem:ga743d366c32e2dce7a9c57762fe525ca8"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga743d366c32e2dce7a9c57762fe525ca8">cudaGray32ToRGB8</a> (float *input, uchar3 *output, size_t width, size_t height, const float2 &amp;pixelRange=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255))</td></tr>
<tr class="memdesc:ga743d366c32e2dce7a9c57762fe525ca8"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float grayscale image into uchar3 RGB/BGR.  <a href="group__colorspace.html#ga743d366c32e2dce7a9c57762fe525ca8">More...</a><br /></td></tr>
<tr class="separator:ga743d366c32e2dce7a9c57762fe525ca8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaf83b1be3204def331413fbf776aa3df3"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gaf83b1be3204def331413fbf776aa3df3">cudaGray32ToRGBA8</a> (float *input, uchar4 *output, size_t width, size_t height, const float2 &amp;pixelRange=<a class="el" href="cudaMath_8h.html#a931119b28bbeb119817cd0128f422a08">make_float2</a>(0, 255))</td></tr>
<tr class="memdesc:gaf83b1be3204def331413fbf776aa3df3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float grayscale image into uchar4 RGB/BGR.  <a href="group__colorspace.html#gaf83b1be3204def331413fbf776aa3df3">More...</a><br /></td></tr>
<tr class="separator:gaf83b1be3204def331413fbf776aa3df3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gabccc05a436032389da3f779e2cef98b4"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#gabccc05a436032389da3f779e2cef98b4">cudaGray32ToRGB32</a> (float *input, float3 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:gabccc05a436032389da3f779e2cef98b4"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float grayscale image into float3 RGB/BGR.  <a href="group__colorspace.html#gabccc05a436032389da3f779e2cef98b4">More...</a><br /></td></tr>
<tr class="separator:gabccc05a436032389da3f779e2cef98b4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga08968447eca071e40810d7e94e954375"><td class="memItemLeft" align="right" valign="top">cudaError_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__colorspace.html#ga08968447eca071e40810d7e94e954375">cudaGray32ToRGBA32</a> (float *input, float4 *output, size_t width, size_t height)</td></tr>
<tr class="memdesc:ga08968447eca071e40810d7e94e954375"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convert float grayscale image into float4 RGB/BGR.  <a href="group__colorspace.html#ga08968447eca071e40810d7e94e954375">More...</a><br /></td></tr>
<tr class="separator:ga08968447eca071e40810d7e94e954375"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="dir_54a0acf6da04fe2ed9410b4c6369bc5d.html">jetson-utils</a></li><li class="navelem"><a class="el" href="cudaGrayscale_8h.html">cudaGrayscale.h</a></li>
    <li class="footer">Generated on Tue Jul 14 2020 21:59:34 for Jetson Inference by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.13 </li>
  </ul>
</div>
</body>
</html>
